package com.eureka.service.web;

import com.eureka.service.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liuaiguo on 2016/12/30.
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "getName",method = RequestMethod.GET)
    public String getName(){
        return userService.getUSerName();
    }
}
